EVT_POSITIVE_EDGE = 100
EVT_PEGATIVE_EDGE = 101

firstUserEventType = 300

def NewEventType():
    ret = firstUserEventType
    firstUserEventType += 1
    return ret

class Event:
    def __init__(self, evttype, evtobject):
        self._type = evttype
        self._object = evtobject
        
    def GetType(self):
        return self._type
    
    def GetEventObject(self):
        return self._object

class PositiveEdge(Event):
    def __init__(self, evtobject):
        Event.__init__(self, EVT_POSITIVE_EDGE, evtobject)
    
class PegativeEdge(Event):
    def __init__(self, evtobject):
        Event.__init__(self, EVT_PEGATIVE_EDGE, evtobject)